import Vue from "vue";
import Router from "vue-router";
import HelloWorld from "@/components/HelloWorld";
import Demopage from "@/views/demopage";
import Home from "@/components/HelloFromVux";

Vue.use(Router);

const router = new Router({
  routes: [
    {
      path: "/",
      name: "HelloWorld",
      component: HelloWorld
    },
    {
      path: "/home",
      name: "Home",
      component: Home
    },
    {
      path: "/Demopage",
      name: "Demopage",
      component: Demopage
    }
  ]
});

export default router;
